home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Franz PD
/
Franz PD Disk #051 (1990)(Amiga User Group Deutschland e.V.).zip
/
Franz PD Disk #051 (1990)(Amiga User Group Deutschland e.V.).adf
/
ElektrischeSchaltungen
/
Wechselschaltung
(
.txt
)
< prev
next >
Wrap
AmigaBASIC Source Code
|
1989-07-02
|
5KB
|
262 lines
SCREEN 2,320,200,3,1
anfang:
WINDOW 2," Wechselschaltung ",(0,0)-(297,186),15,2
PALETTE 0,0.1,0,0.33
PALETTE 1,0.3,0.8,0.1
PALETTE 2,0.4,0.2,0.9
PALETTE 3,1,1,0.13
PALETTE 4,1,0.87,0.73
PALETTE 5,0.8,0.6,0.53
PALETTE 6,0.83,0.2,0
PALETTE 7,0.4,0.6,0.9
COLOR 6,2
LOCATE 1,17 : PRINT "N"
LOCATE 2,19 : PRINT "L1"
LOCATE 1,21 : PRINT "PE"
LOCATE 20,13 : PRINT"Linke Maustaste"
LOCATE 22,8 : PRINT "S1"
LOCATE 22,31 : PRINT "S2"
CIRCLE (150,30),28,1,,,1
CIRCLE (150,90),18,1,,,1
CIRCLE (25,150),20,3,,,1
CIRCLE (280,150),20,3,,,1
CIRCLE (12,150),1.5,3
CIRCLE (267,150),1.5,3
CIRCLE (35,142),1.5,3
CIRCLE (35,158),1.5,3
CIRCLE (290,142),1.5,3
CIRCLE (290,158),1.5,3
CIRCLE (137,90),1.5,3
CIRCLE (162,90),1.5,3
CIRCLE (137,18),1.5,3
CIRCLE (150,30),1.5,3
CIRCLE (150,50),1.5,3
CIRCLE (150,70),1.5,3
LINE (137,0)-(137,90),7
LINE (150,0)-(150,30),4
LINE (12,30)-(150,30),4
LINE (12,30)-(12,150),4
LINE (162,45)-(162,90),4
LINE (162,45)-(267,45),4
LINE (267,45)-(267,150),4
LINE (35,35)-(35,142),2
LINE (35,35)-(290,35),2
LINE (290,35)-(290,142),2
LINE (290,158)-(302,158),2
LINE (35,158)-(50,158),2
LINE (50,158)-(50,40),2
LINE (50,40)-(302,40),2
LINE (302,40)-(302,158),2
LINE (267,150)-(290,142),6
LINE (12,150)-(35,158),6
LINE (150,50)-(150,70),3
LINE (150,50)-(160,50),3
LINE (160,0)-(160,50),3
LINE (137,90)-(142,80),6
LINE (142,80)-(146,97),6
LINE (146,97)-(150,80),6
LINE (150,80)-(154,97),6
LINE (154,97)-(158,80),6
LINE (158,80)-(162,90),6
ON MOUSE GOSUB start
MOUSE ON
WHILE INKEY$="" : WEND
start:
LINE (12,150)-(35,142),6
aus:
LINE (12,150)-(35,158),0
FOR i=0 TO 30 STEP 0.2
PSET (150,i),6
NEXT i
FOR i=-0 TO 138 STEP 0.2
PSET (150-i,30),6
NEXT i
FOR i=30 TO 150 STEP 0.2
PSET (12,i),6
NEXT i
FOR i=-0 TO 107 STEP 0.2
PSET (35,142-i),6
NEXT i
FOR i=35 TO 290 STEP 0.2
PSET (i,35),6
NEXT i
FOR i=35 TO 142 STEP 0.2
PSET (290,i),6
NEXT i
FOR i=-0 TO 105 STEP 0.2
PSET (267,150-i),6
NEXT i
FOR i=-0 TO 105 STEP 0.2
PSET (267-i,45),6
NEXT i
FOR i=45 TO 90 STEP 0.2
PSET (162,i),6
NEXT i
IF i<>240 THEN GOSUB an
an:
a=3
CIRCLE (150,90),18,a,,,1
PAINT (150,90),a
IF a=3 THEN GOSUB auss
IF i=45 THEN GOSUB weiter
auss:
CIRCLE (150,90),18,1,,,1
PAINT (150,90),0
weiter:
LOCATE 1,17 : PRINT "N"
LOCATE 2,19 : PRINT "L1"
LOCATE 1,21 : PRINT "PE"
LOCATE 20,13: PRINT"Linke Maustaste"
LINE (12,150)-(35,142),0
CIRCLE (150,30),28,1,,,1
CIRCLE (150,90),18,1,,,1
CIRCLE (25,150),20,3,,,1
CIRCLE (280,150),20,3,,,1
CIRCLE (12,150),1.5,3
CIRCLE (267,150),1.5,3
CIRCLE (35,142),1.5,3
CIRCLE (35,158),1.5,3
CIRCLE (290,142),1.5,3
CIRCLE (290,158),1.5,3
CIRCLE (137,90),1.5,3
CIRCLE (162,90),1.5,3
CIRCLE (137,18),1.5,3
CIRCLE (150,30),1.5,3
CIRCLE (150,50),1.5,3
CIRCLE (150,70),1.5,3
LINE (137,0)-(137,90),7
LINE (150,0)-(150,30),4
LINE (12,30)-(150,30),4
LINE (12,30)-(12,150),4
LINE (162,45)-(162,90),4
LINE (162,45)-(267,45),4
LINE (267,45)-(267,150),4
LINE (35,35)-(35,142),2
LINE (35,35)-(290,35),2
LINE (290,35)-(290,142),2
LINE (290,158)-(302,158),2
LINE (35,158)-(50,158),2
LINE (50,158)-(50,40),2
LINE (50,40)-(302,40),2
LINE (302,40)-(302,158),2
LINE (267,150)-(290,142),6
LINE (12,150)-(35,158),6
LINE (150,50)-(150,70),3
LINE (150,50)-(160,50),3
LINE (160,0)-(160,50),3
LINE (137,90)-(142,80),6
LINE (142,80)-(146,97),6
LINE (146,97)-(150,80),6
LINE (150,80)-(154,97),6
LINE (154,97)-(158,80),6
LINE (158,80)-(162,90),6
ON MOUSE GOSUB startd
MOUSE ON
WHILE INKEY$="" : WEND
startd:
LINE (267,150)-(290,158),6
LINE (267,150)-(290,142),0
FOR i=0 TO 30 STEP 0.2
PSET (150,i),6
NEXT i
FOR i=-0 TO 138 STEP 0.2
PSET (150-i,30),6
NEXT i
FOR i=30 TO 150 STEP 0.2
PSET (12,i),6
NEXT i
'**************************************************************
FOR i=35 TO 50 STEP 0.2
PSET (i,158),6
NEXT i
FOR i=-0 TO 117 STEP 0.2
PSET (50,158-i),6
NEXT i
FOR i=50 TO 302 STEP 0.2
PSET (i,40),6
NEXT i
FOR i=40 TO 158 STEP 0.2
PSET (302,i),6
NEXT i
FOR i=-0 TO 12 STEP 0.2
PSET (302-i,158),6
NEXT i
'*******************************************************
FOR i=-0 TO 105 STEP 0.2
PSET (267,150-i),6
NEXT i
FOR i=-0 TO 105 STEP 0.2
PSET (267-i,45),6
NEXT i
FOR i=45 TO 90 STEP 0.2
PSET (162,i),6
NEXT i
IF i<>240 THEN GOSUB ana
ana:
a=3
CIRCLE (150,90),18,a,,,1
PAINT (150,90),a
IF a=3 THEN GOSUB ause
IF i=45 THEN GOSUB weiterr
ause:
CIRCLE (150,90),18,1,,,1
PAINT (150,90),0
weiterr:
GOSUB anfang